﻿CREATE TABLE [dbo].[eDocumentPersoana] (
    [IDDocPers]  INT    IDENTITY (1, 1) NOT NULL,
    [IDDocument] BIGINT NOT NULL,
    [IdPersoana] INT    NOT NULL,
    CONSTRAINT [PK_eDocumentPersoana] PRIMARY KEY CLUSTERED ([IDDocPers] ASC),
    CONSTRAINT [FK_eDocumentPersoana_eDocumentPersoana] FOREIGN KEY ([IDDocument]) REFERENCES [dbo].[eDocumente] ([IDDocument]),
    CONSTRAINT [FK_eDocumentPersoana_Persoane] FOREIGN KEY ([IdPersoana]) REFERENCES [dbo].[Persoane] ([IdPersoana])
);

